﻿var currentLangCode = 'vi';
$(document).ready(function () {

    CallCalendar(currentLangCode);

    $('#gototop').on('click', function () {
        $('html,body').animate({ scrollTop: 0 }, 800);
        return false;
    })
});

function CallCalendar(currentLangCode) {
    $('#calendar').fullCalendar({
        //link huong dan nhap google calendar: http://fullcalendar.io/docs/google_calendar/
        googleCalendarApiKey: 'AIzaSyDAHGwAFmHs3eV2FcZnq6pzCvchBDO12XM',
        events: {
            googleCalendarId: 'duongthaibao7387@gmail.com'
        },
        header: {
            left: 'prev,next today',

            center: 'title',
            right: 'month,agendaWeek,agendaDay',

            //left: '',

            //center: '',
            //right: ''
        },
        
        lang: currentLangCode,
        buttonIcons: false, // show the prev/next text
        weekNumbers: false,
        editable: false,
        eventLimit: true, // allow "more" link when too many events
        height: 370
    });
    $('.fc-day-grid-container').removeAttr("style")
    $('.fc-toolbar').remove();
}
